package com.lantosec.hmrp.modules.category.vo;

import com.lantosec.hmrp.modules.category.entity.AssetsPrintTemplate;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 资产标签打印模板 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-04-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="AssetsPrintTemplate对象", description="资产标签打印模板")
public class AssetsPrintTemplateVO extends BaseVO<AssetsPrintTemplate> {
    private static final long serialVersionUID = 1L;


    public AssetsPrintTemplateVO(AssetsPrintTemplate entity){
        this.templateId = entity.getTemplateId();
        this.templateType = entity.getTemplateType();
        this.templateContent = entity.getTemplateContent();
        this.templateName = entity.getTemplateName();
    }

    @Override
    public AssetsPrintTemplate convertToEntity(){
        return new AssetsPrintTemplate(this);
    }


    @ApiModelProperty(value = "模板ID")
    private Integer templateId;

    @ApiModelProperty(value = "模板类型(1普通RFID 2抗金属RFID)")
    private String templateType;

    @ApiModelProperty(value = "模板内容")
    private String templateContent;

    @ApiModelProperty(value = "模板名称")
    private String templateName;


}
